package com.noodles.mall.service;

import com.noodles.mall.entity.Cart;
import com.noodles.mall.entity.Order;
import com.noodles.mall.entity.OrderItem;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/** 订单-商品 **/
public interface OrderItemService extends IService<OrderItem> {
    /** 添加: 单个 **/
    boolean insert(OrderItem orderItem);

    /** 添加: 批量 **/
    boolean insertBath(Order order, List<Cart> cartList);

    /** 查询列表: order_id **/
    List<OrderItem> selectList(Integer orderId);
}
